Skip to content

Instantly share code, notes, and snippets.

@themagicalmammal
themagicalmammal / Optimizations_Void.md
Last active March 28, 2026 08:38
Set of optimizations, I use on my Void Setup

Void Linux — Complete System Optimization Guide

Warning: This guide contains system-level modifications. Some steps are irreversible or can render your system unbootable. Read every section fully before executing any command. Know what you are doing, or do not proceed.


Table of Contents

# Section
@alexheretic
alexheretic / gfx1100-comfyui-setup.md
Last active March 28, 2026 08:28
7900 GRE / gfx1100 optimised ComfyUI setup for Linux

7900 GRE / gfx1100 optimised ComfyUI setup for Linux

This is stuff that has worked well for me.

Tested on Arch Linux, Ryzen 7 5800X, 64GB RAM, RX 7900 GRE, ROCM 7.2

Changelog
  • 2026-02-07: Switch to upstream flash-attention + FLASH_ATTENTION_FWD_TRITON_AMD_CONFIG_JSON.
@nwithan8
nwithan8 / plex_to_jellyfin.py
Last active March 28, 2026 08:26
Migrate Plex user accounts to Jellyfin (mass create Jellyfin accounts)
#!/usr/bin/env python3
import requests
from plexapi.server import PlexServer
from plexapi.myplex import MyPlexAccount
import argparse
import json
import random
import string
import time
@nfsarmento
nfsarmento / nginx-wordpress.conf
Last active March 28, 2026 08:24
Harden wordpress security nginx
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}
@mcxiaoke
mcxiaoke / clash.yaml
Created June 1, 2024 03:26
clash各种协议的配置模板
# DNS 配置可自行修改
port: 7890
allow-lan: true
mode: rule
log-level: info
unified-delay: true
global-client-fingerprint: chrome
dns:
enable: true
listen: :53
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active March 28, 2026 08:08
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten

🎮 7x.games — Free Browser Games

150 free browser games. No download. No login. Just play.

Website Games Visitors Built With

import cv2
import numpy as np
from mss import mss
import ctypes
import math
import winsound
import threading
import sys
import time
import os
@dnavarrom
dnavarrom / install-docker-mint20.sh
Created August 19, 2020 01:43
Install docker and docker compose en linux mint 20
#docker setup
echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | sudo tee /etc/apt/sources.list.d/docker.list
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io pigz
#execution permission
sudo usermod -aG docker $USER
#docker compose